package cn.sendto.rowmapper.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import cn.sendto.model.CarInfoModel;
import cn.sendto.rowmapper.IRowMapper;

public class CarInfoMapper implements IRowMapper<CarInfoModel>{

	@Override
	public CarInfoModel rowMapper(ResultSet rs) throws SQLException {
		CarInfoModel cim = new CarInfoModel();
		cim.setSbID(rs.getInt("SbID"));
		cim.setSbname(rs.getString("Sbname"));
		cim.setSbtype(rs.getInt("Sbtype"));
		cim.setChargeman(rs.getString("Chargeman"));
		cim.setStatus(rs.getString("Status"));
		cim.setDepartment(rs.getString("Department"));
		return cim;
	}

}
